<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Victor
 * Date: 08.11.11
 * Time: 22:23
 * To change this template use File | Settings | File Templates.
 */
error_reporting(E_ALL);
ini_set("display_errors", 'off');
ini_set("session.use_cookies", "on");
ini_set("session.use_trans_sid", "on");
$basePath = dirname(dirname(__FILE__)) . "/app";
define('DS', DIRECTORY_SEPARATOR);
define('__BASEPATH__', $basePath);
define('__LIBRARY__', __BASEPATH__ . DS . 'lib');

require_once __LIBRARY__ . DS . 'Core' . DS . 'Loader.php';
require_once __LIBRARY__.DS.'Core'.DS.'Bootstrap.php';
$loader = Core_Loader::getInstance();
$loader->register();

$bootstrap = new Core_Bootstrap();
$bootstrap->loadApp();

$frontController = $bootstrap->getFrontController();
$frontController->run();

